﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CommunitySystemModel;
using System.Collections.ObjectModel;
using CommunitySystemModel.WordMode;

namespace CommunitySystem.Web.Service
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IWordAction" in both code and config file together.
    [ServiceContract]
    public interface IWordAction
    {
        [OperationContract]
        void DoWork();


        [OperationContract]
        string InsertWord_XingZhengJieShaoLetter(Word_XingZhengJieShaoLetter entity);

        [OperationContract]
        int GetNOAcoordingToYear(int Year);

        [OperationContract]
        bool DeleteWord_XingZhengJieShaoLetter(int id);

        [OperationContract]
        ObservableCollection<Word_XingZhengJieShaoLetter> GetXingZhengJieshaoXing(string condition);


        [OperationContract]
        ObservableCollection<InterviewTemplete> GetInterViewTemplete(string condition);

        [OperationContract]
        void SaveInterviewTemplete(InterviewTemplete entity);

        [OperationContract]
        void DeleteInterviewTemplete(int id);

        [OperationContract]
        string ExportInterviewInfo(string[] Parameters, int TempleteID);

        [OperationContract]
        ObservableCollection<Word_WagesApproved> GetWagesApproved(string condition);

        [OperationContract]
        void SaveWagesApproved(Word_WagesApproved entity);

        [OperationContract]
        void DeleteWagesApproved(int id);

        [OperationContract]
        int GetTopNOAcoordingToYear(int Year);

        [OperationContract]
        string ExportWagesApprove(int id);

        [OperationContract]
        ObservableCollection<Word_PostionChange> GetWord_PostionChange(string condition);

        [OperationContract]
        string SaveWord_PostionChange(Word_PostionChange entity);

        [OperationContract]
        void DeleteWord_PostionChange(int id);

        [OperationContract]
        int GetPositionChangeNO(int Year);
    }
}
